Optimal. Leaf size=40 \[ -\frac{\left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)}{4 a^2}-\frac{a x^3}{12}+\frac{x}{4 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0215924, antiderivative size = 40, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.062, Rules used = {5994} \[ -\frac{\left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)}{4 a^2}-\frac{a x^3}{12}+\frac{x}{4 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5994
Rubi steps
\begin{align*} \int x \left (1-a^2 x^2\right ) \tanh ^{-1}(a x) \, dx &=-\frac{\left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)}{4 a^2}+\frac{\int \left (1-a^2 x^2\right ) \, dx}{4 a}\\ &=\frac{x}{4 a}-\frac{a x^3}{12}-\frac{\left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)}{4 a^2}\\ \end{align*}
Mathematica [A] time = 0.0140596, size = 69, normalized size = 1.72 \[ -\frac{1}{4} a^2 x^4 \tanh ^{-1}(a x)+\frac{\log (1-a x)}{8 a^2}-\frac{\log (a x+1)}{8 a^2}-\frac{a x^3}{12}+\frac{1}{2} x^2 \tanh ^{-1}(a x)+\frac{x}{4 a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.027, size = 57, normalized size = 1.4 \begin{align*} -{\frac{{a}^{2}{\it Artanh} \left ( ax \right ){x}^{4}}{4}}+{\frac{{\it Artanh} \left ( ax \right ){x}^{2}}{2}}-{\frac{{x}^{3}a}{12}}+{\frac{x}{4\,a}}+{\frac{\ln \left ( ax-1 \right ) }{8\,{a}^{2}}}-{\frac{\ln \left ( ax+1 \right ) }{8\,{a}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.965126, size = 50, normalized size = 1.25 \begin{align*} -\frac{{\left (a^{2} x^{2} - 1\right )}^{2} \operatorname{artanh}\left (a x\right )}{4 \, a^{2}} - \frac{a^{2} x^{3} - 3 \, x}{12 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.19443, size = 117, normalized size = 2.92 \begin{align*} -\frac{2 \, a^{3} x^{3} - 6 \, a x + 3 \,{\left (a^{4} x^{4} - 2 \, a^{2} x^{2} + 1\right )} \log \left (-\frac{a x + 1}{a x - 1}\right )}{24 \, a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.36611, size = 46, normalized size = 1.15 \begin{align*} \begin{cases} - \frac{a^{2} x^{4} \operatorname{atanh}{\left (a x \right )}}{4} - \frac{a x^{3}}{12} + \frac{x^{2} \operatorname{atanh}{\left (a x \right )}}{2} + \frac{x}{4 a} - \frac{\operatorname{atanh}{\left (a x \right )}}{4 a^{2}} & \text{for}\: a \neq 0 \\0 & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.16326, size = 100, normalized size = 2.5 \begin{align*} -\frac{1}{8} \,{\left (a^{2} x^{4} - 2 \, x^{2}\right )} \log \left (-\frac{a x + 1}{a x - 1}\right ) - \frac{\log \left ({\left | a x + 1 \right |}\right )}{8 \, a^{2}} + \frac{\log \left ({\left | a x - 1 \right |}\right )}{8 \, a^{2}} - \frac{a^{7} x^{3} - 3 \, a^{5} x}{12 \, a^{6}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]